Renesas Electronics /R7FA2A1AB /ADC160 /ADCMPCR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as ADCMPCR

15 1211 87 43 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (00)CMPAB 0Reserved0 (0)CMPBE 0Reserved 0 (0)CMPAE 0Reserved 0 (0)CMPBIE 0 (0)WCMPE 0 (0)CMPAIE

WCMPE=0, CMPAE=0, CMPAB=00, CMPAIE=0, CMPBE=0, CMPBIE=0

Description

A/D Compare Function Control Register

Fields

CMPAB

Window A/B Composite Conditions SettingNOTE: These bits are valid when both window A and window B are enabled (CMPAE = 1 and CMPBE = 1).

0 (00): ADC160_WCMPM is output when window A comparison conditions are met OR window B comparison conditions are met. ADC160_WCMPUM is output in other cases.

1 (01): ADC160_WCMPM is output when window A comparison conditions are met EXOR window B comparison conditions are met. ADC160_WCMPUM is output in other cases.

2 (10): ADC160_WCMPM is output when window A comparison conditions are met and window B comparison conditions are met. ADC160_WCMPUM is output in other cases.

3 (11): Setting prohibited.

Reserved

These bits are read as 0000000. The write value should be 0000000.

CMPBE

Compare Window B Operation Enable

0 (0): Compare window B operation is disabled. ADC160_WCMPM and ADC160_WCMPUM outputs are disabled.

1 (1): Compare window B operation is enabled.

Reserved

This bit is read as 0. The write value should be 0.

CMPAE

Compare Window A Operation Enable

0 (0): Compare window A operation is disabled. ADC160_WCMPM and ADC160_WCMPUM outputs are disabled.

1 (1): Compare window A operation is enabled.

Reserved

This bit is read as 0. The write value should be 0.

CMPBIE

Compare B Interrupt Enable

0 (0): ADC160_CMPBI interrupt is disabled when comparison conditions (window B) are met.

1 (1): ADC160_CMPBI interrupt is enabled when comparison conditions (window B) are met.

WCMPE

Window Function Setting

0 (0): Window function is disabled. Window A and window B operate as a comparator to comparator the single value on the lower side with the A/D conversion result.

1 (1): Window function is enabled. Window A and window B operate as a comparator to comparator the two values on the upper and lower sides with the A/D conversion result.

CMPAIE

Compare A Interrupt Enable

0 (0): ADC160_CMPAI interrupt is disabled when comparison conditions (window A) are met.

1 (1): ADC160_CMPAI interrupt is enabled when comparison conditions (window A) are met.

Links

()